export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}
export interface Records {
  id?: number;
  createTime?: string;
  updateTime?: string;
  roleName: string;
  remark?: string;
}

export type records = Records[];
export interface Data {
  records: records;
  total: number;
  size: number;
  current: number;
  orders: [];
  optimizeCountSql: boolean;
  hitCount: boolean;
  countId: null;
  maxLimit: null;
  searchCount: boolean;
  pages: number;
}
export interface RoleResponseData extends ResponseData {
  data: Data;
}

// 菜单与按钮数据的ts类型
export interface MenuData {
  id: number;
  createTime: string;
  updateTime: string;
  pid: number;
  name: string;
  code: string;
  toCode: string;
  type: number;
  status: null;
  level: number;
  children?: MenuList;
  select: boolean;
}
export type MenuList = MenuData[];
export interface MenuResponseData extends ResponseData {
  data: MenuList;
}
